home *** CD-ROM | disk | FTP | other *** search
/ Palm Utilities / Palm_Utilities_CD-ROM_2001_2001.iso / files / internet misc / XML PalmPilot applications 1.0 / XTPP-latest.exe / Pilot / details.bat < prev    next >
Encoding:
DOS Batch File  |  1999-11-22  |  595 b   |  41 lines

  1. @echo off
  2. rem Batch file for running details.xst
  3. set surname=
  4. set firstname=
  5.  
  6. if '%1' == '' goto usage
  7. if not '%1' == '-f' if not '%1' == '-s' goto usage
  8. if '%1' == '-f' goto f
  9. if '%1' == '-s' goto s
  10. echo This should not happen
  11. goto exit
  12.  
  13. :f
  14. set firstname=%2
  15. if '%3' == '' goto do
  16. if '%3' == '-s' goto s2
  17. goto usage
  18.  
  19. :s
  20. set surname=%2
  21. if '%3' == '' goto do
  22. if '%3' == '-f' goto f2
  23. goto usage
  24.  
  25. :f2
  26. set firstname=%4
  27. goto do
  28.  
  29. :s2
  30. set surname=%4
  31. goto do
  32.  
  33. :usage
  34. echo Usage: details [-f firstname] [-s surname]
  35. goto exit
  36.  
  37. :do
  38. ..\apps\xtract details.xst
  39.  
  40. :exit
  41.